api_endpoint_mamem = "http://127.0.0.1:8910"// 测试 add_memory
// 测试 add_memory
result = ma_add_memory({
        "task_main": "测试任务",
        "task_description": "这是一个测试任务的描述",
        "label": true,
        "state_chain": JSON.stringify([{
            "nodes": [
                {"id": 0, "state": "start"}, 
                {"id": 1, "state": "progress"},
                {"id": 2, "state": "end"}
            ],
            "links": [
                {"source": 0, "target": 1},
                {"source": 1, "target": 2}
            ]
        }]),
        "extra_fields": {"key": "value", "test_id": 1},
        "task_trajectory": ["step1", "step2", "step3"]
    })
console.log('add_memory 结果:', result);


// 测试 retrieve_memory
result = ma_retrieve_memory("测试任务", 3, 2, 15, 0.4)
console.log('retrieve_memory 结果:', result);